<template lang="pug">
  .tab-1.pt-15
    Table.hasTitle-table.beautiful-table(:columns="setThead" :data="examineContractList")
      template(slot-scope="{ row, index }" slot="action_2")
        Button.mr-10(type="info" size="small" @click="downFile(row.id)") 合同下载
        Button.mr-10(type="info" size="small" @click="progressBtn(row.id, row.contractNo, row.contractType)") 查看进度
</template>

<script>
import theadMixin from '../../theadMixin.js'
export default {
  props: {
    examineContractList: Array
  },
  mixins: [theadMixin],
  data () {
    return {
      thead: ['contractNo', 'applyUserName', 'applyDepartment', 'applyTime', 'contractType', 'sealType', 'contractTemplate', 'productType', 'process', 'action_2']
    }
  },
  computed: {
    setThead () {
      return this.getTableColumns(this.thead)
    }
  },
  methods: {
    progressBtn (id,no,type) {
      this.$emit('get-progress', {
        id,
        no,
        type
      })
    }
  }
}
</script>

<style>

</style>
